import { Http } from '@/utils/Http.js'
import { Config } from '@/Config.js'

export const RegionApi = {

	/**
	 *  获取缓存数据
	 * @returns
	 */
	getCacheRegion: (cacheName) => {
		// return new Promise((resolve, reject) => {
		// 	uni.request({
		// 		url: Config.OSS_HOST+'/static/'+cacheName+'.json', //仅为示例，并非真实接口地址。
		// 		method: 'get',
		// 		success: (res) => {
		// 			resolve(data.data)
		// 		}
		// 	});
		// })

		return Http.request({
			url: Config.OSS_HOST+'/static/'+cacheName+'.json',
			method: 'get'
		})
	},

}
